package com.kaiwukj.android.ufamily.mvp.http.api.service;

import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseListResp;
import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseObjResp;
import com.kaiwukj.android.ufamily.mvp.http.entity.event.PayInfo;
import com.kaiwukj.android.ufamily.mvp.http.entity.resultbak.AlipayResult;
import com.kaiwukj.android.ufamily.mvp.http.entity.resultbak.PayFeeListResult;
import com.kaiwukj.android.ufamily.mvp.http.entity.resultbak.PayFeeResult;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * @author Charles
 * @date 2019/10/15.
 * description：Kaiwu
 */
public interface PayFeeService {

    /**
     * 获取物业缴费列表
     */
    @POST("/estate/app/feeBill/list")
    Observable<BaseListResp<PayFeeListResult>> requestPayFeeList(@Body RequestBody body);

    /**
     * 获取物业缴费列表
     */
    @POST("/estate/app/paymentRecord/list")
    Observable<BaseListResp<PayFeeResult>> requestPayFeeLists(@Body RequestBody body);

    /**
     * 微信支付
     */
    @POST("/estate/app/feeBill/wxPay")
    Observable<BaseObjResp<PayInfo>> payByWechat(@Body RequestBody body);

    /**
     * 支付宝支付
     */
    @POST("/estate/app/feeBill/aliPay")
    Observable<BaseObjResp<AlipayResult>> payByAli(@Body RequestBody body);

    /**
     * 取消订单
     */
    @POST("/estate/app/feeBill/cancelOrder")
    Observable<BaseObjResp<Object>> cancelOrder(@Body RequestBody body);

}
